<?php
class MA_Forms_Register extends MA_Form
{
	public function init()
	{
		parent::init();
		/**
		 * @todo Falta captcha y aceptacion de condiciones
		 */
        $this->setName('register');
        
        $confirmMail = new Zend_Form_Element_Text( 'mail_confirm' );
        $confirmMail->setLabel( 'Confirmar E-mail' )
            ->setRequired( true )
            ->addFilter('StringToLower')
            ->addValidator( 'NotEmpty', true);
            
        $confirmPassword = new Zend_Form_Element_Password('password_confirm');
        $confirmPassword->setLabel('Confirmar Clave')
            ->setRequired(true)
            ->addValidator('NotEmpty', true);
            
        $this->addElements( array(
        	$this->_username, $this->_mail, $confirmMail, $this->_password, $confirmPassword, $this->_submit ));	
	}
}